package com.lovejes.app.domain.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the t_jes_couplet table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="t_jes_couplet"
 */

public abstract class BaseTJesCouplet  implements Serializable {

	public static String REF = "TJesCouplet";
	public static String PROP_STATUS = "Status";
	public static String PROP_WIDTH = "Width";
	public static String PROP_RIGHTURL = "Righturl";
	public static String PROP_HEIGHT = "Height";
	public static String PROP_LEFTURL = "Lefturl";
	public static String PROP_RIGHTNAME = "Rightname";
	public static String PROP_RIGHTIMG = "Rightimg";
	public static String PROP_LEFTNAME = "Leftname";
	public static String PROP_NAME = "Name";
	public static String PROP_LEFTIMG = "Leftimg";
	public static String PROP_ID = "Id";


	// constructors
	public BaseTJesCouplet () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseTJesCouplet (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private java.lang.String name;
	private java.lang.String leftname;
	private java.lang.String leftimg;
	private java.lang.String lefturl;
	private java.lang.String rightname;
	private java.lang.String rightimg;
	private java.lang.String righturl;
	private java.lang.String width;
	private java.lang.String height;
	private java.lang.String status;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid"
     *  column="ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: name
	 */
	public java.lang.String getName () {
		return name;
	}

	/**
	 * Set the value related to the column: name
	 * @param name the name value
	 */
	public void setName (java.lang.String name) {
		this.name = name;
	}



	/**
	 * Return the value associated with the column: leftname
	 */
	public java.lang.String getLeftname () {
		return leftname;
	}

	/**
	 * Set the value related to the column: leftname
	 * @param leftname the leftname value
	 */
	public void setLeftname (java.lang.String leftname) {
		this.leftname = leftname;
	}



	/**
	 * Return the value associated with the column: leftimg
	 */
	public java.lang.String getLeftimg () {
		return leftimg;
	}

	/**
	 * Set the value related to the column: leftimg
	 * @param leftimg the leftimg value
	 */
	public void setLeftimg (java.lang.String leftimg) {
		this.leftimg = leftimg;
	}



	/**
	 * Return the value associated with the column: lefturl
	 */
	public java.lang.String getLefturl () {
		return lefturl;
	}

	/**
	 * Set the value related to the column: lefturl
	 * @param lefturl the lefturl value
	 */
	public void setLefturl (java.lang.String lefturl) {
		this.lefturl = lefturl;
	}



	/**
	 * Return the value associated with the column: rightname
	 */
	public java.lang.String getRightname () {
		return rightname;
	}

	/**
	 * Set the value related to the column: rightname
	 * @param rightname the rightname value
	 */
	public void setRightname (java.lang.String rightname) {
		this.rightname = rightname;
	}



	/**
	 * Return the value associated with the column: rightimg
	 */
	public java.lang.String getRightimg () {
		return rightimg;
	}

	/**
	 * Set the value related to the column: rightimg
	 * @param rightimg the rightimg value
	 */
	public void setRightimg (java.lang.String rightimg) {
		this.rightimg = rightimg;
	}



	/**
	 * Return the value associated with the column: righturl
	 */
	public java.lang.String getRighturl () {
		return righturl;
	}

	/**
	 * Set the value related to the column: righturl
	 * @param righturl the righturl value
	 */
	public void setRighturl (java.lang.String righturl) {
		this.righturl = righturl;
	}



	/**
	 * Return the value associated with the column: width
	 */
	public java.lang.String getWidth () {
		return width;
	}

	/**
	 * Set the value related to the column: width
	 * @param width the width value
	 */
	public void setWidth (java.lang.String width) {
		this.width = width;
	}



	/**
	 * Return the value associated with the column: height
	 */
	public java.lang.String getHeight () {
		return height;
	}

	/**
	 * Set the value related to the column: height
	 * @param height the height value
	 */
	public void setHeight (java.lang.String height) {
		this.height = height;
	}



	/**
	 * Return the value associated with the column: status
	 */
	public java.lang.String getStatus () {
		return status;
	}

	/**
	 * Set the value related to the column: status
	 * @param status the status value
	 */
	public void setStatus (java.lang.String status) {
		this.status = status;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.lovejes.app.domain.TJesCouplet)) return false;
		else {
			com.lovejes.app.domain.TJesCouplet tJesCouplet = (com.lovejes.app.domain.TJesCouplet) obj;
			if (null == this.getId() || null == tJesCouplet.getId()) return false;
			else return (this.getId().equals(tJesCouplet.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}